# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=jomplug
pkgver=0.1
pkgrel=3
groups=('blackarch' 'blackarch-webapp' 'blackarch-fingerprint')
pkgdesc="This php script fingerprints a given Joomla system and then uses Packet Storm's archive to check for bugs related to the installed components."
arch=('any')
url='http://packetstormsecurity.com/files/121390/Janissaries-Joomla-Fingerprint-Tool.html'
license=('custom:unknown')
depends=('php')
source=("$pkgname::https://dl.packetstormsecurity.net/UNIX/scanners/joomlafingerprint.txt")
sha512sums=('322aa92ecb5bbc07ceaa32610be1571d6f30f1d88119b02c9abf1400b6665612a438e0a078f8fbaa1601df982c7464468d1c22a4c01d7665d93e4e8dfcf8a20d')

prepare() {
  sed -i '1i#!/usr/bin/php' $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

